﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageNavStepTwoCol.master"
    AutoEventWireup="true" CodeBehind="ViewBabyGroup1112.aspx.cs" Inherits="WebSite.BabyGroup1112" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="css/common.css" />
    <link type="text/css" rel="Stylesheet" href="css/frame.css" />
    <link type="text/css" rel="Stylesheet" href="css/baby1112.css" />    
    <script type="text/javascript" src="js/jquery.slider.min.js"></script>
    <script type="text/javascript" src="js/jquery.jcarousel.min.js"></script>
    <script type="text/javascript" src="js/waypoints.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/jquery.slider.css" />
    <link rel="stylesheet" type="text/css" href="css/jcarousel.skin.css" />
    <script src="js/baby.js" type="text/javascript"></script>
    <script type="text/javascript">
        function sharelifephoto() {
            var img = $(".lifephotoarea li:last img");
            var imgurl = "";
            if (img.length != 0) {
                imgurl = img.attr("src");
            }
            openwindowshare("#快乐宝宝帮#大赛精彩不断，还有多重好礼可以拿！猛戳>>>http://cover.carrefour.com.cn ", window.location.href, "");
        }

        function sharehuaxu(picurl) {
            openwindowshare("#快乐宝宝帮#大赛精彩不断，还有多重好礼可以拿！猛戳>>>http://cover.carrefour.com.cn ", window.location.href, "");
        }

        $(document).ready(function () {
            
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <div class="babyVideo">
            <div class="video">
                <embed width="485px" height="365px" name="logoflash" src="<%=curTeam.VideoUrl %>"
                    type="application/x-shockwave-flash" wmode="transparent" />
            </div>
        </div>
        <div class="title_liangying">
        </div>
        <div class="teaminfo">
            <div class="photo">
                <img src="<%=curTeam.TeamHeadImg%>" />
            </div>
            <div class="votearea">
                <div class="fltlft l">
                    <div class="title">
                        <img src="images/BabyGroup1112/t1.png" /></div>
                    <div class="ft_26 name">
                        <%=curTeam.TeamName%></div>
                </div>
                <div class="fltlft">
                    <div>                    
                        <% 
                            if (IsTheFirst)
                            {
                                %>
                                <img src="images/index1118/title.png" boder="0" /><br />
                                <%
                            }
                        %>    
                        <% 
                            string[] scores = (curTeam.Ip ?? ",").Split(new char[] { ',' }, 2);
                        %>
                        <a href="Intro.aspx" target="_blank">
                        决赛票数:<span class="red" id="Span1"><%= curTeam.TeamVoteNum%></span>票<br /> 
                        晋级赛评委分：<span class="red" id="Span2"><%= scores[0] %></span>分 <br />
                        晋级赛总分：<span class="red" id="Span3"><%= scores.Length > 1 ? scores[1] : "" %></span>分<br />
                        决赛总分:<span class="red" id="Span4"><%=curTeam.TotalScore??0%></span>分 <br />
                        </a>
                        <!--
                        <a href="javascript:void(0)" onclick="voteTeam(<%=curTeam.Id %>,$('#piaoshu'))">
                            <img src="images/BabyGroup/geiwomentoupiao_big.png" /></a> 
                            <div class="voteresult"><span class="red" id="piaoshu">
                                <%=curTeam.TeamVoteNum %></span> 票</div>
                        -->
                    </div>
                </div>
                <div class="clearfloat">
                </div>
            </div>
            <div style="text-align:center">
                        <a href="javascript:void(0);" onclick="sharehuaxu('<%= curTeam.TeamHeadImg %>');">
                            <img src="images/sina_icon.png" />分享微博，就有机会赢取丰厚礼品哦 </a>
                    </div>
        </div>
        <div class="lifephotoarea">
            <div class="sharepanel">
                <a class="sharesina" href="javascript:void(0);" onclick="sharelifephoto();">分享</a>
            </div>
            <div class="panel">
                <div class="scroll_c">
                    <ul id="icon-carousel" class="jcarousel-skin-tango">
                        <% 
                            if (listImage != null)
                            {
                                foreach (var item in listImage)
                                {                                
                        %>
                        <li>
                            <div class="scroll_i">
                                <div class="photoframe">
                                    <img src="<%= item.ImgUrl %>" />
                                </div>
                            </div>
                        </li>
                        <%
                            }
                        }
                        %>
                    </ul>
                </div>
            </div>
        </div>
        <div class="slogan">
            <div class="slogantext">
                <%= babyA.BabyTeamDeclaration %></div>
        </div>
        <div class="intro">
            <div class="babyintro">
                <p class="ft_bold orange">
                    *宝宝编号为
                    <%= babyA.Id %></p>
                <p>
                    宝宝姓名：<%= babyA.BabyName %></p>
                <p>
                    生日：<%= Common.NullableHelper.CastValueType( babyA.BabyBirthday ).ToString("yyyy-MM-dd") %></p>
                <p>
                    年龄：<%= WebSite.Core.AgeCalcHelper.AgeCalc( babyA.BabyBirthday ) %></p>
                <p>
                    性别：<%= Common.NullableHelper.CastValueType( babyA.BabySex ) ==1 ? "男" : "女" %></p>
                <p>
                    城市：<%=babyA.LiveProvince %></p>
                <p>
                    &nbsp;</p>
                <p class="ft_bold orange">
                    宝宝介绍：</p>
                <p>
                    <%= babyA.Introduction %></p>
            </div>
            <div class="babysepar">
            </div>
            <div class="babyintro">
                <p class="ft_bold orange">
                    *宝宝编号为
                    <%= babyB == null ? "" : babyB.Id.ToString() %></p>
                <p>
                    宝宝姓名：<%= babyB == null ? "" : babyB.BabyName%></p>
                <p>
                    生日：<%= babyB == null ? "" : Common.NullableHelper.CastValueType( babyB.BabyBirthday ).ToString( "yyyy-MM-dd" )%></p>
                <p>
                    年龄：<%= babyB == null ? "" : WebSite.Core.AgeCalcHelper.AgeCalc( babyB.BabyBirthday )%></p>
                <p>
                    性别：<%= babyB == null ? "" : Common.NullableHelper.CastValueType( babyB.BabySex ) == 1 ? "男" : "女"%></p>
                <p>
                    城市：<%= babyB == null ? "" : babyB.LiveProvince%></p>
                <p>
                    &nbsp;</p>
                <p class="ft_bold orange">
                    宝宝介绍：</p>
                <p>
                    <%= babyB == null ? "" :  babyB.Introduction%></p>
            </div>
            <div class="clearfloat">
            </div>
        </div>
        <div style="text-align: right">
            <img src="images/BabyGroup1112/duck.png" />
        </div>
    </div>
    <script>
        jQuery('#icon-carousel').jcarousel({
            scroll: 1,
            start: 1,
            wrap: 'circular',
            auto: 3
        });
    </script>
</asp:Content>
